import config from "@/config";
import http from "@/utils/request";

export default {
    info: {
        url: `${config.API_URL}/marketing.Lucky/index`,
        name: "获取免单配置",
        get: async function (data = {}) {
            return await http.get(this.url, data);
        },
    },
    saveConfig: {
        url: `${config.API_URL}/marketing.Lucky/index`,
        name: "保存免单配置",
        post: async function (data = {}) {
            return await http.post(this.url, data);
        },
    },
    luckyOrderList: {
        url: `${config.API_URL}/marketing.Lucky/getLuckyOrder`,
        name: "幸运免单列表",
        get: async function (data = {}) {
            return await http.get(this.url, data);
        },
    },
}